package com.mdtx.base;

/**
 * 系统异常代码
 *
 * @author 猫啊
 * @create 2017-09-02 10:16
 **/
public enum SystemErrorCode {

    /**
     * 1-1000系统级异常
     * sys 系统
     * pwd密码
     * usr用户
     * err错误
     */
    SYS_ERR(1,"系统异常"),
    USR_PWD_ERR(2,"用户名或密码错误"),
    TOKE_INVALID(3,"无效token"),
    TOKE_OVERTIME(4,"token过期");





    private Integer code;

    private String errorInfo;

    SystemErrorCode(Integer code, String errorInfo) {
        this.code = code;
        this.errorInfo = errorInfo;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }


}
